
#ifndef ACTOR_H
#define ACTOR_H

#include "State.h"


class Actor : public GameSprite
{
public:
	Actor();
	Actor(Image image, XMFLOAT2 pos);
	Actor(Animation animation, XMFLOAT2 pos);
	Actor(vector<Animation*> animations, XMFLOAT2 pos);

	float getSpeed(){return speed;};
	void setSpeed(float s);

	void ChangeState(State* newState);

	virtual void Update(double time);
	virtual void Draw(Graphics2D* graphics);

protected:
	State* currentState;
	vector<Animation*> animations;
	float speed; // movement
};

#endif 